home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / pmake / sys.mk < prev    next >
Encoding:
Makefile  |  1990-11-16  |  2.1 KB  |  116 lines

  1. #
  2. # System Makefile for:
  3. #    Sun3 running Sprite and a Bourne Shell that does error-checking
  4. # switching.
  5. #
  6. # These are the variables used to specify the nature of the system on which
  7. # pmake is running. These names may later be used in #if expressions for
  8. # conditional reading of the enclosed portion of the Makefile
  9. #
  10. sun=     Machine is a sun
  11. mc68000= so it has a Motorola 68000-family chip.
  12. sprite=     It runs Sprite.
  13. mc68020= It's a Sun3 so it has a 68020 microprocessor.
  14.  
  15. .SUFFIXES : .out .a .ln .o .c .cc .F .f .e .r .y .l .s .cl .p .h \
  16.         .c,v .cc,v .y,v .l,v .s,v .h,v
  17. .INCLUDES : .h
  18. .LIBS    : .a
  19.  
  20. #
  21. # Don't assume any dependencies for files without suffixes.
  22. #
  23. .NULL    : .h
  24.  
  25. YACC    = yacc
  26. YFLAGS    =
  27. LEX    = lex
  28. LFLAGS    =
  29. CC    = cc
  30. RM    = rm
  31. MV    = mv
  32. #if defined(vax) || defined(sun)
  33. AS    = as
  34. #else
  35. AS    = as -
  36. #endif
  37. PC    = pc
  38. PFLAGS    =
  39. CFLAGS    =
  40. AFLAGS    =
  41. RC    = f77
  42. RFLAGS    =
  43. FC    = f77
  44. EFLAGS    =
  45. FFLAGS    =
  46. LOADLIBES=
  47. CO    = co
  48. COFLAGS    =
  49. CI    = ci
  50. CIFLAGS    =
  51. AR    = ar
  52. ARFLAGS    = r
  53. LD    = ld
  54.  
  55. .c,v.c .y,v.y .l,v.l .s,v.s .h,v.h :
  56.     $(CO) $(COFLAGS) $(.IMPSRC) $(.TARGET)
  57.  
  58. .c.o :
  59.     $(CC) $(CFLAGS) -c $(.IMPSRC)
  60.  
  61. .p.o :
  62.     $(PC) $(PFLAGS) -c $(.IMPSRC)
  63.  
  64. .cl.o :
  65.     class -c $(.IMPSRC)
  66.  
  67. .e.o .r.o .F.o .f.o :
  68.     $(FC) $(RFLAGS) $(EFLAGS) $(FFLAGS) -c $(.IMPSRC)
  69.  
  70. .s.o :
  71.     $(AS) $(AFLAGS) -o $(.TARGET) $(.IMPSRC)
  72.  
  73. .y.o :
  74.     $(YACC) $(YFLAGS) $(.IMPSRC)
  75.     $(CC) $(CFLAGS) -c y.tab.c
  76.     $(RM) y.tab.c
  77.     $(MV) y.tab.o $(.TARGET)
  78.  
  79. .l.o :
  80.     $(LEX) $(LFLAGS) $(.IMPSRC)
  81.     $(CC) $(CFLAGS) -c lex.yy.c
  82.     $(RM) lex.yy.c
  83.     $(MV) lex.yy.o $(.TARGET)
  84.  
  85. .y.c :
  86.     $(YACC) $(YFLAGS) $(.IMPSRC)
  87.     $(MV) y.tab.c $(.TARGET)
  88.  
  89. .l.c :
  90.     $(LEX) $(LFLAGS) $(.IMPSRC)
  91.     $(MV) lex.yy.c $(.TARGET)
  92.  
  93. .s.out .c.out .o.out :
  94.     $(CC) $(CFLAGS) $(.IMPSRC) $(LOADLIBES) -o $(.TARGET)
  95.  
  96. .f.out .F.out .r.out .e.out :
  97.     $(FC) $(EFLAGS) $(RFLAGS) $(FFLAGS) $(.IMPSRC) \
  98.         $(LOADLIBES) -o $(.TARGET)
  99.     $(RM) -f $(.PREFIX).o
  100.  
  101. .y.out :
  102.     $(YACC) $(YFLAGS) $(.IMPSRC)
  103.     $(CC) $(CFLAGS) y.tab.c $(LOADLIBES) -ly -o $(.TARGET)
  104.     $(RM) y.tab.c
  105.  
  106. .l.out :
  107.     $(LEX) $(LFLAGS) $(.IMPSRC)
  108.     $(CC) $(CFLAGS) lex.yy.c $(LOADLIBES) -ll -o $(.TARGET)
  109.     $(RM) lex.yy.c
  110.  
  111. #
  112. # System search-path specifications.
  113. #
  114. .PATH.h: /sprite/lib/include /sprite/lib/include/$(MACHINE).md
  115. .PATH.a: /sprite/lib/$(MACHINE).md
  116.